package com.ruoyi.system.domain.Pull;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 物料补料设置对象 material_feed
 *
 * @author ruoyi
 * @date 2023-03-06
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("material_feed")
public class MaterialFeed implements Serializable {

private static final long serialVersionUID=1L;


        /** 补料主键id */
        @TableId(value = "feed_id")
        @ApiModelProperty(value = "补料主键id")
    private Long feedId;

        /** 物料编码 */
        @Excel(name = "物料编码")
        @ApiModelProperty(value = "物料编码")
    private String materialCode;

    @ApiModelProperty(value = "物料id")
    private String dataId;

        /** 物料名称 */
        @Excel(name = "物料名称")
        @ApiModelProperty(value = "物料名称")
    private String materialName;

        /** 产线名称 */
        @Excel(name = "产线名称")
        @ApiModelProperty(value = "产线名称")
    private String lineName;

    @ApiModelProperty(value = "产线编码")
    private String lineCode;

        /** 工位名称 */
        @Excel(name = "工位名称")
        @ApiModelProperty(value = "工位名称")
    private String stationName;

    @ApiModelProperty(value = "工位编码")
    private String stationCode;

    @ApiModelProperty(value = "工位id")
    @TableField(exist = false)
    private String shopId;

        /** 产品编码 */
        @Excel(name = "产品编码")
        @ApiModelProperty(value = "产品编码")
    private String productCode;

        /** 产品名称 */
        @Excel(name = "产品名称")
        @ApiModelProperty(value = "产品名称")
    private String productName;

        /** 存放上线 */
        @Excel(name = "存放上线")
        @ApiModelProperty(value = "存放上线")
    private Integer storeOnline;

        /** 阀值 */
        @Excel(name = "阀值")
        @ApiModelProperty(value = "阀值")
    private Integer threshold;

        /** 每次补料量 */
        @Excel(name = "每次补料量")
        @ApiModelProperty(value = "每次补料量")
    private Integer feedNumber;

    @ApiModelProperty(value = "包装规格")
    private Integer packageRule;

        /** 有效期（天） */
        @Excel(name = "有效期" , readConverterExp = "天=")
        @ApiModelProperty(value = "有效期(天)")
    private Integer validityPeriod;

        /** createBy */
        private String createBy;

        /** createTime */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** updateBy */
        private String updateBy;

        /** updateTime */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date updateTime;

        /** 单位 */
        @Excel(name = "单位")
        @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "备注")
    private String remarks;

}
